﻿using UnityEngine;
using UnityEditor;

namespace BToolkit.ExeUtils
{
    public class ImportSetting : AssetPostprocessor
    {

        void OnPreprocessModel()
        {
            //ModelImporter importer = (ModelImporter)assetImporter;
            //importer.animationType = ModelImporterAnimationType.Legacy;
        }

        void OnPreprocessTexture()
        {
            TextureImporter importer = (TextureImporter)assetImporter;
            importer.alphaIsTransparency = true;
            importer.npotScale = TextureImporterNPOTScale.None;
            importer.mipmapEnabled = false;
            importer.textureCompression = TextureImporterCompression.Uncompressed;
        }

        void OnPreprocessAudio()
        {
            //AudioImporter importer = (AudioImporter)assetImporter;
            //importer.threeD = false;
        }
    }
}